@extends('qiwei.main')

@section('content')
    <article class="page-container">
        @if ($errors->any())
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li class="Huialert Huialert-danger">{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif

        <form action="{{route('activitySave')}}" method="post" class="form form-horizontal" id="form-admin-role-add">
            @csrf

            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>活动名称：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="text" class="input-text" value="" placeholder="" id="" name="activity_name">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>活动标题：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="text" class="input-text" value="" placeholder="" id="" name="activity_title">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>活动状态：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="radio" class="" value="0" placeholder="" id="" name="status" checked>未开始
                    <input type="radio" class="" value="1" placeholder="" id="" name="status">已开始
                    <input type="radio" class="" value="2" placeholder="" id="" name="status">已结束
                    <br>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>是否上架：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="radio" class="" value="1" placeholder="" id="" name="is_on_sale" checked>上架
                    <input type="radio" class="" value="0" placeholder="" id="" name="is_on_sale">下架
                    <br>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>开始时间：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="datetime-local" class="input-text" value="1" placeholder="" id="" name="start_time">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>结束时间：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="datetime-local" class="input-text" value="1" placeholder="" id="" name="end_time">
                </div>
            </div>

            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <button type="submit" class="btn btn-success radius"><i class="icon-ok"></i> 添加</button>
                </div>
            </div>
        </form>
    </article>
@endsection
